﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace CWB.Web.Model.DB
{
    public class DbModuleBbu
    {
        public string username;
        public string password;
        public int sn;
        public string chk;
    }

    [DataContract]
    public class DbModuleProd
    {
        [DataMember(Name = "sn")]
        public int sn;
        [DataMember(Name = "pn")]
        public string prodName;
        [DataMember(Name = "id")]
        public string prodid;
        [DataMember(Name = "u")]
        public int unit;
        [DataMember(Name = "f")]
        public int fee;
        [DataMember(Name = "v")]
        public int unitvalue;
    }
    
    [DataContract]
    public class DbModuleAgent
    {
        [DataMember(Name = "sn")]
        public int sn;
        [DataMember(Name = "posi")]
        public int Position;
        [DataMember(Name = "poss")]
        public int Possess;
        [DataMember(Name = "n")]
        public string Notes;
        [DataMember(Name = "u")]
        public string Username;
        [DataMember(Name = "l")]
        public string Loginid;
        [DataMember(Name = "climit")]
        public decimal CreditLimit;
        [DataMember(Name = "s")]
        public int Status;

        public string Password;
        public string chk;

        public List<DbModuleProd> ProdItems;
        public int[] Prodsns;
    }
}
